<template>
	<view>
		<button @click="goto">跳转到index</button>
	</view>
</template>

<script setup>
	import { onMounted } from 'vue';
	onMounted(()=>{
		if(uni.getStorageSync("TOKEN") == ''){
			uni.redirectTo({
				url:'/pages/login/login'
			})
		}
	})
	const goto = ()=>{
		uni.navigateTo({
			url:'/pages/index/index'
		})
	}
</script>

<style>

</style>
